<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="js/jquery.min.js"></script>
</head>

<body>
  <ul id="ul">
    <li class="item">1</li>
    <li class="item">2</li>
    <li class="item">3</li>
    <li class="item">4</li>
    <li class="item">5</li>

  </ul>
  <div id="sortable1" style="width:200px;height:200px;border:1px dashed #333;">
    <div class="">
      1
    </div>
  </div>
  <script type="text/javascript">
    console.log($("#ul li").is('.item'));
    if ($("#ul li").is('.item')) {
      $("#ul li").click(function() {
        $(this).appendTo($("#sortable1"));
        console.log($(this));
      })
    }
    // $("#ul li").click(function() {
    //   $(this).appendTo($("#sortable1"));
    //   console.log($(this));
    // })
  </script>
</body>

</html>
